<template>
	<!-- 购物带功能 -->
	<view class="">
		<view class="pdbJr bgcf cart-box">
			<view class="content ">
				<view class="mb10 fs22 tip df aic" style="color: #48A147;">
					<nmr-icon name="a-tishi-32" color="#48A147"></nmr-icon>
					<view class="ml10">
						<text>因冷冻食品特殊性、活物产品等，商品下单后不支持无理由退货，
						部分商品支持售后服务，介意者谨慎下单。</text>
						<div class=" fs22" style="color: red;">温馨提示：冻品类周六及节假日下单，将延迟配送！</div>
					</view>
				</view>

				<view class="selected-goods df aic">
					<view>
						<view class="price">
							<text class="c3 fs26">应付款：</text>
							<text class="fs24">￥</text>{{isHaveStock==0?'--':payPrice||0}}
						</view>
						<!-- <view class="desc">
								已减4.03元
							</view> -->

					</view>
					<view class="" style="margin-left: auto;">
						<u-button hair-line @click="handlesubmit" :loading="loading"
							:custom-style="{fontSize: '30rpx', color: '#ffffff',width: '230rpx', height: '88rpx',background: '#FF4500'}"
							shape='circle' ripple>{{isHaveStock==0?'确定预约':'立即支付'}}</u-button>
					</view>
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		props: {
			loading: {
				type: Boolean,
				default: false
			},
			payPrice: {
				default: 0
			},
			isToday: {
				type: Boolean,
				default: true
			},
			isHaveStock:{
				type:Number,
				default:1
			}
		},

		data() {
			return {
				showCart: false,
				setPricePay:0
			}
		},
		mounted() {
			// this.drawSetByOrderId()
		},
		methods: {
			drawSetByOrderId(){
				drawSetByOrderId().then(res =>{
					if(res.code==200){
						this.setPricePay = res.data.getMoneyLimit
						
					}else{
						uni.showToast({
							title:res.msg,
							icon:'none',
							mask:true
						})
					}
				})
			},
			handlesubmit() {
				this.$emit('handlesubmit')


			},
			handleCert() {
				this.showCart = !this.showCart
			}
		}
	}
</script>

<style lang="scss" scoped>
	.tip{
		
	}
	$theme-text: #47A848;

	.cart-box {
		width: 100%;
		position: fixed;
		z-index: 1203;
		bottom: 0;
		box-shadow: 0rpx 0rpx 4rpx 1rpx rgba(0, 0, 0, 0.16);

		.price {
			font-size: 40rpx;
			font-family: PingFangSC-Semibold-, PingFangSC-Semibold;
			font-weight: normal;
			color: #FF4500;

		}

		.desc {
			font-size: 24rpx;
			font-family: PingFangSC-Regular-, PingFangSC-Regular;
			font-weight: normal;
			color: #47A848;
			margin-left: 75rpx;
		}

		.content {
			margin: 17rpx 30rpx;
		}

	}
</style>